<?php
class SF_AutoCoupon_Model_Resource_Mysql4_Lotterycode extends Mage_Core_Model_Mysql4_Abstract{
    protected  function  _construct(){
        $this->_init("autocoupon/lotterycode", "id");
    }
}